//Ext.Ajax.on('requestexception', function (conn, response, options) {
Jwawa.framework.JwawaConnection.on('requestexception', function (conn, response, options) {
    if (Ext.Ajax.useDefaultErrorAlert){
        var result = response.responseJson;
        if(response.status == 500){
            alertError(response.message);
        } else {
            if(response.exceptionType == "SYS_EXCEPTION"){
                alertError(result.message);
            } else {
                top.msgBar.showErrorMsg(result.message);
            }
        }
    }
});

Jwawa.framework.JwawaConnection.on('beforerequest', function( conn, options, eOpts ){
    top.msgBar.hide();
});



